<?php
namespace app\serversetting\logic;
use \app\manage\logic\BaseLogic;
use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-07-14 12:02:00
 * @Description: 设置分类
 */
class SettingCategory extends BaseLogic
{
	
	protected $settingCategoryLogic = '\app\serversetting\logic\SettingCategory';
    protected $settingCategoryValidate = '\app\serversetting\validate\SettingCategory';

    use \app\serveruser\traits\AddAppIdToRunOne;

    //获取分类树
    public function getTree($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/getTree', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*编辑一个分类*/
    public function editCategory($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/editCategory', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*查看某个分类详情*/
    public function oneCateInfo($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/oneCateInfo', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*删除某个分类*/
    public function delOneCate($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/delOneCate', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*批量删除选中的分类*/
    public function batchDelCate($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/batchDelCate', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*启用/禁用 一个 分类*/
    public function changeStatus($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/changeStatus', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }
    /*启用/禁用 多个 分类*/
    public function batchChangeStatus($data): array 
    {
    	return $this->_addAppIdToRunOne($data, 'serversetting/setting/SettingCategory/batchChangeStatus', $this->settingCategoryValidate, $this->settingCategoryLogic);
    }




}